import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import monacoEditorPlugin from "vite-plugin-monaco-editor";

const isDev = process.env.NODE_ENV !== "production";

// https://vitejs.dev/config/
export default defineConfig({
  base: isDev ? "/" : "./",
  plugins: [vue(),
    (monacoEditorPlugin as any).default({})
  ],
  resolve: {
    dedupe: ["vue"],
  },
  optimizeDeps: {
    include: ['monaco-editor'],
  },
})